

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition>

	<p:idleMonitor onactive="sessionTimeOutDialog.show();"
		timeout="#{session.maxInactiveInterval * 1000}" />

              
<p:dialog header="What's happening?" resizable="false"  
            widgetVar="idleDialog" modal="true" width="400">  
    <h:outputText value="Dude, are you there?" />  
</p:dialog>  
            

	<!-- <p:dialog header="#{msg['error.sessionTimeOut.header']}"
		widgetVar="sessionTimeOutDialog" modal="true" fixedCenter="true"
		closable="false" width="400" visible="false" resizable="false"  >
		<h:outputText value="#{msg['error.sessionTimeOut.text']}" />

		<input id="confirmBackToLogin" type="button"
			value="#{msg['error.sessionTimeOut.button']}"
			onclick="window.location='#{facesContext.externalContext.requestContextPath}/login.xhtml';" />

	</p:dialog>

 --> 

</ui:composition>

</html>
